ZML: Z Formal Specifications Using XML
نویسندگان
چکیده
This paper describes a project, the purpose of which was to determine the feasibility of using XML as a vehicle for carrying the contextual meaning of a Z formal specification. This paper describes a definition of the popular Z (pronounced z G), formal specification language, in terms of an eXtensible Markup Language (XML) Data Type Definition (DTD). Using the Sun JAXB tool, we wrote a Java program that supports building and processing a tree structure based on the DTD. Using that DTD, a small Z specification was rendered in XML. We then present a case study Java program written to demonstrate the ability to examine and process the Z specification as an internal tree structure. Finally, we describe some limitations encountered in the JAXB tool and suggestions for improving it. With the feasibility proven, we could then go on to use the XML vehicle to pass the Z specification to a theorem prover, a code generator, or other, as yet unforeseen tools. Z is a formal specification language, used for specifying requirements or designs, and to which formal proofs of correctness and completeness can be applied. XML allows us to define a Z schema, so it can be used with other software tools to contextually render the schema. We describe a complete Data Type Definition (DTD), denoted ZML, for the general Z schema format. While pursuing our primary purpose, we have found some limitations in JAXB, which we describe in this paper.
منابع مشابه
A Formal Object Approach to the Design of ZML
This paper addresses two issues: how formal object modeling techniques facilitate the XML application development and how XML technology helps formal/graphical software design process. In particular, the paper presents a XML/XSL approach to the development of a web environment for Z family languages (Z/Object-Z/TCOZ). The projection techniques and tools from object-oriented Z (in XML) to UML (i...
متن کاملFormal Analysis in Model Management: Exploiting the Power of CZT
Software engineering diagrams are hard to verify and formally analyse, often due to inadequately defined diagram semantics: the semantics often does not enable formal analysis, or may be underspecified to a degree that does not allow useful properties to be checked. The AUtoZ tools (jamesrobertwilliams.co.uk/autoz.php) provide formalisation in the style of commercially-acceptable model manageme...
متن کاملOn a GUI-based Editor for Z Specifications and its Applications
There are some problems to describe the formal Z notation using a standard text editor. One of the reasons is to use the non-standard fonts and the special symbols in the Z notation, then making it difficult to write Z documents. This paper presents a solution to such problems. A prototype on a GUI-based editor for Z specifications, named ZEditor, is developed and improved. Using ZEditor, Z doc...
متن کاملCZT: A Framework for Z Tools
The Community Z Tools (CZT) project is an open-source Java framework for building formal methods tools for Z and Z dialects. It also includes a set of tools for parsing, typechecking, transforming and printing standard Z specifications in LTEX, Unicode or XML formats. This paper gives an overview of the CZT framework, including an introduction to its visitor design pattern that makes it possibl...
متن کاملZML: XML Support for Standard Z
This paper proposes an XML format for standard Z.We describe several earlier XML proposals for Z, the problems and issues that arose, and the rationales behind our new proposal. The new proposal is based upon a comparison of various existing Z annotated syntaxes, to ensure that the mark-up will be widely usable. This XML format is expected to become a central feature of the CZT (Community Z Too...
متن کامل